const { translation } = require('../models/index')
const _ = require('lodash')
const errorHelper = require('../util/errorHelper')

class TranslationController {
  constructor() {
    // empty
  }
  async saveTranslation(transData) {
    // { returning: true } only for postgress
    const result = await translation.upsert(transData)
    return result
  }
}

module.exports = new TranslationController()
